<template>
  <div class="share" @click="hidePop">
    <img :src="cdnUrl + '/assets/money/share.png'" alt="" />
  </div>
</template>

<script>
import { cdnUrl } from '../../service/env'
export default {
  name: 'Share',
  props: {
    hide: Function
  },
  data () {
    return {
      cdnUrl: cdnUrl
    }
  },
  methods: {
    hidePop () {
      this.$emit('hide')
    }
  }
}
</script>

<style scoped lang="scss">
.share{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  img{
    width: 28%;
    float: right;
    margin: 20px 20px 0 0;
  }
}
</style>
